c = 12  #global
def outer():
    b = 11  #Enclosing
    # print('a =',a)
    print('c =',c)
    print(locals())
    # def inner():
    #     a = 10  #local
    #     print(f'我是函数内部定义的变量{a}')
    #     # print('b =',b)
    #     # print('c =',c)
    # inner()

outer()
for i in range(10):
    d = 99
# python 内置的方法
print (globals ())
print (locals ())


